package com.cq.hd.member.api.vo;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class BusinessPointsMallHomePageVo implements Serializable {

    @ApiModelProperty(value = "商家id")
    private Long id;

    @ApiModelProperty(value = "商城开启状态：0未开启 1已开启 2已关闭")
    private Integer pointsMallState;

    @ApiModelProperty(value = "商家名称")
    private String businessName;

    @ApiModelProperty(value = "商家简称")
    private String businessShortName;

    @ApiModelProperty(value = "商家logo")
    private String logo;

    @ApiModelProperty(value = "可用积分")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal remainPoint = BigDecimal.ZERO;

    @ApiModelProperty(value = "订阅状态：1-未订阅，2-已订阅")
    private Integer subscribeState = 1;

    @ApiModelProperty(value = "每消费1元，奖励x积分")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal consume = BigDecimal.ZERO;

    @ApiModelProperty(value = "首次订阅，奖励x积分")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal firstSubscription = BigDecimal.ZERO;

    @ApiModelProperty(value = "分销活动，每获得1元佣金，奖励x积分")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal distribution = BigDecimal.ZERO;

    @ApiModelProperty(value = "转发活动，奖励x积分")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal shareActive = BigDecimal.ZERO;

    @ApiModelProperty(value = "每天转发活动获得积分次数上限")
    private Integer shareDailyLimit = 0;
}
